import request from '@/utils/request'
//获取菜单树形数据
export function getMenuTree(params: any) {
  return request({
    url: '/Base_Button/MenuTreeJson',
    method: 'post',
    params,
  })
}
//获取按钮树形数据
export function getButtonTree(params: any) {
  return request({
    url: '/Base_Button/ButtonTreeJson',
    method: 'post',
    params,
  })
}
//获取按钮数据
export function getList(data: any) {
  return request({
    url: '/Base_Button/TreeGridListJson',
    method: 'post',
    data,
  })
}
//获取按钮详情
export function getbuttoninfo(data: any) {
  return request({
    url: '/Base_Button/getbuttoninfo',
    method: 'post',
    data,
  })
}
//保存按钮数据
export function doEdit(data: any) {
  return request({
    url: '/Base_Button/savebutton',
    method: 'post',
    data,
  })
}
//删除按钮
export function doDelete(data: any) {
  return request({
    url: `/Base_Button/delbutton`,
    method: 'post',
    data,
  })
}
//获取页面数据
export function GetPageData(data: any) {
  return request({
    url: `/Base_Button/GetPageData`,
    method: 'post',
    data,
  })
}
